package trading.ctm.yunjing.module.mine.fragment

import android.content.Intent
import android.os.Bundle
import cc.vv.baselibrary.fragment.BaseFragment
import kotlinx.android.synthetic.main.fragment_mine.*
import kotlinx.android.synthetic.main.layout_mine_short_cut.*
import trading.ctm.yunjing.R
import trading.ctm.yunjing.module.login.activity.DataAttestationIndividualActivity
import trading.ctm.yunjing.module.mine.activity.*

/**
 * 我的
 */
class MineFragment : BaseFragment(){
    override fun initLayoutRes(): Int {
        return R.layout.fragment_mine
    }

    override fun initAction(bundle: Bundle?) {
        super.initAction(bundle)

        //设置
        tv_fm_setting.setOnClickListener {
            startActivity(Intent(activity, SettingActivity::class.java))
        }

        //认证
        tv_fm_approve.setOnClickListener {
            startActivity(Intent(activity, DataAttestationIndividualActivity::class.java))
        }

        //我的订单
        ll_msc_order.setOnClickListener {
            startActivity(Intent(activity, MineOrderActivity::class.java))
        }

        //我的拍卖
        ll_msc_auction.setOnClickListener {
            startActivity(Intent(activity, MineAuctionActivity::class.java))
        }

        //我的采购
        ll_msc_buy.setOnClickListener {
            startActivity(Intent(activity, MinePurchaseActivity::class.java))
        }

        //我的供应
        ll_msc_supply.setOnClickListener {
            startActivity(Intent(activity, MineSupplyActivity::class.java))
        }

        //我的发票
        ll_msc_bill.setOnClickListener {
            startActivity(Intent(activity, BillManageActivity::class.java))
        }

        //我的钱包
        rl_fm_mine_purse.setOnClickListener {
            startActivity(Intent(activity, MineBurseActivity::class.java))
        }
        //我的收藏
        rl_fm_mine_collect.setOnClickListener {
            startActivity(Intent(activity, MineCollectActivity::class.java))
        }
        //申请仓库
        rl_fm_apply_lib.setOnClickListener {
            startActivity(Intent(activity, ApplyStorageActivity::class.java))
        }
        //申请初检
        rl_fm_apply_check.setOnClickListener {
            startActivity(Intent(activity, ApplyInitialCheckActivity::class.java))
        }
        //我的货物
        rl_fm_mine_cargo.setOnClickListener {
            startActivity(Intent(activity, MineCargoActivity::class.java))
        }
        //物流管理
        rl_fm_logistics_manager.setOnClickListener {
            startActivity(Intent(activity, LogisticsManageActivity::class.java))
        }
    }

}